package org.neuedu.chapter03_0610;

public class Practice09 {
    public static void main(String[] args) {
        // 输入一个0～100的分数，如果不是0～100之间，
        // 打印分数无效，根据分数等级打印A,B,C,D,E
        int score = 99;
        if (score < 0 || score > 100) {
            System.out.println("分数无效");
        } else {
            switch (score / 10) {
                case 9:
                case 10:
                    System.out.println("A");
                    break;
                case 8:
                    System.out.println("B");
                    break;
                case 7:
                    System.out.println("C");
                    break;
                case 6:
                    System.out.println("D");
                    break;
                default:
                    System.out.println("E");
            }
        }
    }
}
